<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp" %>
<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="decorator" content="default"/>
    <title>店铺企业信息管理</title>
    <link href="${ctxStatic}/merchant/css/layui.css" rel="stylesheet" type="text/css">
    <link href="${ctxStatic}/merchant/css/index.css" rel="stylesheet" type="text/css">
    <link href="${ctxStatic}/merchant/css/register2.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">
        $(document).ready(function () {

            $("#btnCancel").click(function () {
                window.location.href = "${fns:getFrontPath()}" + "/jumpCompanyForm";
            });

            $("#companyName").focus();
            $("#inputForm").validate({
                submitHandler: function (form) {
                    loading('正在跳转，请稍等...');
                    form.submit();
                },
                errorContainer: "#messageBox",
                errorPlacement: function (error, element) {
                    $("#messageBox").text("输入有误，请先更正。");
                    if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
                        error.appendTo(element.parent().parent());
                    } else {
                        error.insertAfter(element);
                    }
                }
            });
        });

    </script>
</head>
<body>

<header>
    <div class="register-title">
        <span>商户入驻</span>
    </div>
</header>
<div class="content">
    <form:form id="inputForm" modelAttribute="hkEnterShopCompanyInfo" action="${ctx}/saveHkEnterShopCompanyInfoForm"
               method="post" class="form-horizontal">
    <form:hidden path="id"/>
    <sys:message content="${message}"/>
    <div class="artificial-info">
        <span class="title">入驻企业信息<i class="warntitle">带*号为必填项,不填写可点击跳过按钮跳过。</i></span>
        <div class="info">
            <div class="layui-form-item">
                <label class="layui-form-label">公司名称：</label>
                <div class="layui-input-block">
                    <form:input path="companyName" id="companyName" htmlEscape="false" type="text"
                                style="height: 50px;border-radius: 4px;font-size: 16px;color: #333;" name="title"
                                lay-verify="required" placeholder="请输入公司名称"
                                autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">公司经营地址：</label>
                <div class="layui-input-block">
                    <sys:treeselect id="area" name="area.id" value="${hkEnterShopCompanyInfo.area.id}"
                                    labelName="area.name"
                                    labelValue="${hkEnterShopCompanyInfo.area.name}"
                                    title="区域" url="/sys/area/treeData" cssClass="required" notAllowSelectParent="true"
                                    notAllowSelectRoot="true"/>

                    <input type="text" name="address"
                           style="height: 50px;border-radius: 4px;font-size: 16px;color: #333;" lay-verify="required"
                           placeholder="请输入精确到门牌号的具体地址"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">统一社会信用代码：</label>
                <div class="layui-input-block">
                    <form:input path="creditCode" htmlEscape="false" type="text" name="title"
                                style="height: 50px;border-radius: 4px;font-size: 16px;color: #333;"
                                lay-verify="required" placeholder="请输入统一社会信用代码"
                                autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">营业执照：</label>
                <div class="layui-input-block">
                    <div class="photo">
                        <input type="hidden" id="businessLicenseImgSrc" name="businessLicenseImgSrc"
                               value="${hkEnterShopCompanyInfo.businessLicenseImgSrc}"/>
                        <sys:ckfinder input="businessLicenseImgSrc" type="thumb" uploadPath="/shop/company"
                                      selectMultiple="false"/>
                    </div>
                    <div class="sfz"></div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">开户许可证：</label>
                <div class="layui-input-block">
                    <div class="photo">
                        <input type="hidden" id="openingPermitImgSrc" name="openingPermitImgSrc"
                               value="${hkEnterShopCompanyInfo.openingPermitImgSrc}"/>
                        <sys:ckfinder input="openingPermitImgSrc" type="thumb" uploadPath="/shop/company"
                                      selectMultiple="false"/>
                    </div>
                    <div class="sfz"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="jump">
            <%--<input id="btnCancel" type="button" value="上一步" onclick="history.go(-1)">--%>
        <input id="btnCancel" type="button" value="跳过">
        <input id="next" type="submit" value="下一步">
    </div>
</div>
</form:form>
</div>
<footer class="foot">
		<span>
			Copyright 2017-2018 lexiaozhuan.com 版权所有 (京ICP证030173号
		</span>
    <img src="${ctxStatic}/merchant/images/shouye/ghs.png">
    <span>
			京公网安备11000002000001号)
		</span>
</footer>
</body>
</html>
